home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 001a / gt1700_1.zip / RAMDISK.BAT < prev    next >
DOS Batch File  |  1991-10-28  |  2KB  |  59 lines

  1. echo off
  2. echo .
  3. echo .   Use this .BAT file to run GT from a RAM disk.
  4. echo .
  5. if "%1" == "" goto warn
  6. if "%2" == "" goto warn
  7. echo .   Once GT has been started, the program disk can be removed,
  8. echo .   but it will be needed when you exit GT.
  9. echo .
  10. echo .   NOTE: You may need to change the "Phone Directory PATH" in the
  11. echo .         GT configuration file.  Use the ALT-I command, then set
  12. echo .         it to point to the RAM disk.
  13. echo .
  14. pause
  15. echo .
  16. echo .   Loading files to the RAM disk.
  17. echo .
  18. %2
  19. echo on
  20. copy %1*.dir
  21. copy %1gt.cnf
  22. copy %1gt.key
  23. copy %1gt.log
  24. copy %1gt.win
  25. set GTPATH=%2\
  26. echo off
  27. %1gt1700 %3 %4 %5 %6 %7 %8 %9
  28. %1
  29. echo .
  30. echo .   Saving the configuration and directory files.
  31. echo .
  32. echo on
  33. copy %2*.dir
  34. copy %2gt.cnf
  35. copy %2gt.key
  36. copy %2gt.log
  37. goto fin
  38. :warn
  39. echo .
  40. echo .   ERROR: You must specify the drives to use!
  41. echo .
  42. echo .          Example:  "ramdisk  d: e: s /d".
  43. echo .
  44. echo .            Where:  d: ..... is the program disk and
  45. echo .                    e: ..... is the RAM disk, and
  46. echo .                    s  ..... is optional, the name of a
  47. echo .                               script to execute, when GT is
  48. echo .                               started.
  49. echo .                    /d ..... is optional, the DTR switch, if present
  50. echo .                               GT will NOT drop DTR upon exit to DOS.
  51. echo .
  52. echo .             Also:  The user should manually set the
  53. echo .                    desired directory on the source drive
  54. echo .                    before executing this .BAT file.  And
  55. echo .                    use the root directory of the ramdisk.
  56. echo .
  57. echo on
  58. :fin
  59.